package com.whmskj.xjlhbc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whmskj.xjlhbc.domain.Scjzk;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ScjzkMapper extends BaseMapper<Scjzk> {

    @Select("select * from xjbc.sc_jzk where device = #{device} and ts = (select max(ts) from xjbc.sc_jzk where device = #{device})")
    List<Scjzk> queryListByDevice(String device);
}
